package com.wrbug.mmkw

import com.tencent.mmkv.MMKV

/**
 *   BaseMmkvTasker.kt
 *   author: wrbug
 *   date: 2019-09-24 12:38
 *
 */

interface BaseMmkvTasker {
    fun getMmkv(): MMKV?
    fun lock()
    fun unlock()
    fun tryLock(): Boolean
    fun getValueSize(key: String): Int
    fun getValueActualSize(key: String): Int
    fun containsKey(key: String): Boolean
    fun allKeys(): Array<String>
    fun count(): Long
    fun totalSize(): Long
    fun clearAll()
    fun trim()
    fun close()
    fun clearMemoryCache()
    fun sync()
    fun async()
    fun commit(): Boolean
    fun apply()
    fun contains(key: String): Boolean
    fun ashmemFD(): Int
    fun ashmemMetaFD(): Int
    fun checkContentChangedByOuterProcess()

}